package com.chandra.pos.order.service;

import com.chandra.pos.order.model.*;

import javax.persistence.EntityNotFoundException;

/**
 * Created by dnagarajan on 3/28/2015.
 */

public interface OrderRole {


    public OrderModel saveOrder(OrderModel orderModel);


    public OrderItemModel saveOrderItem(OrderItemModel orderItemModel);

    public boolean removeOrderItem(OrderItemModel orderItemModel) throws EntityNotFoundException;

    public OrderList search(OrderFilter model);


    public OrderModel getOrderById(Long orderId) throws EntityNotFoundException;

    public OrderItemList listOrderItems(OrderItemModel orderItemModel);

    public OrderModel getOrderDetails(OrderFilter filter) throws EntityNotFoundException;
}
